// 客户端格式化数据
export default dataList => {
	const sdkData = data => ({
		actionType: data.actionType || data.action,
		action: data.actionType || data.action,
		
		pageName: data.pageName || data.page,
		page: data.pageName || data.page,

		target: data.target,
		parentPage: data.parentPage || '/',
		pageFrom: data.pageFrom || [data.page || '/'],
		actionParams: data.actionParams,
		pageParams: data.pageParams,
	})

	return dataList.map(item => sdkData(item))
}